import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import red from '@//view/show/red'
import blue from '@/view/show/blue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'HelloWorld',
      component: HelloWorld,
      children: [
        {
        	path:'/home/red',
        	name:'red',
        	component:red
        },
        {
          path:'/blue',
          name:'blue',
          component:blue
        }
      ]

    }
  ]
})
